#include <iostream>
#include <unistd.h>
#include <cstdlib>
using namespace std;
int main()
{
  pid_t id = fork();
  if(id == 0)
  {
    while(true){
      cout << "i am child, running!" << endl;
      sleep(2);
    }
  }
  else{
    cout << "father do nothing" << endl;
    sleep(10);
    exit(1);

  }
  return 0;
}
